package org.marsdonne.auth;

import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface UnionUserRepos extends JpaRepository<UnionUser, Long> {
    Optional<UnionUser> findByResidentId(String residentId);
    Optional<UnionUser> findByResidentIdAndOrganizationLicenseCode(String residentId, String licenseCode);
}
